ispell.el (ispell-program-name): Update spellchecker parameters when customized.
authorAgustin Martin <agustin.martin@hispalinux.es>
Mon, 5 Nov 2012 16:32:35 +0000 (17:32 +0100)
committerAgustin Martin <agustin.martin@hispalinux.es>
Mon, 5 Nov 2012 16:32:35 +0000 (17:32 +0100)
lisp/ChangeLog
lisp/textmodes/ispell.el

index 00d6fffc525b592e14616ebb06bfd79c541fe19b..5e1a619684436f14f9c8cb1ef7afd6939cbf1bda 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-05  Agustín Martín Domingo  <agustin.martin@hispalinux.es>
+
+       * textmodes/ispell.el (ispell-program-name): Update
+       spellchecker parameters when customized.
+
 2012-11-04  Glenn Morris  <rgm@gnu.org>
 
        * vc/vc-svn.el (vc-svn-state-heuristic): Avoid calling svn.  (Bug#7850)
index d591dc5fa85a47bc9375c3a4807387ac53774957..de60ac37d9e26b62da7c74599c4875802ee53039 100644 (file)
@@ -357,6 +357,10 @@ Must be greater than 1."
       "ispell")
   "Program invoked by \\[ispell-word] and \\[ispell-region] commands."
   :type 'string
+  :set (lambda (symbol value)
+         (set-default symbol value)
+         (if (featurep 'ispell)
+             (ispell-set-spellchecker-params)))
   :group 'ispell)
 
 (defcustom ispell-alternate-dictionary